﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace mimamoru
{
    public partial class ControlPanel : Form
    {
        Form1 main;
        public ControlPanel()
        {
            InitializeComponent();
            main = new Form1();
            //main.Form1_Load(new object(), new EventArgs());
            
        }
     
        private void btnPlay_Click(object sender, EventArgs e)
            //when you stop it, please click the X button on the window, it closes all events and unloads any dll's
        {
            
            if (main.vlcControl != null)
            {                            
               main.vlcControl.Play();
            }
        }

        private void btnPause_Click(object sender, EventArgs e)
        {
            main.pauseVideo();
            //return;
        }
    }
}


//The pause play controls are supposed to be handled by this Control Panel form here
//I can pass the values, lets say for the items in the list box from the first form to second, but the same method doesn't work for trying to control vlcControl